/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ecom.beans.cart;

import ecom.beans.account.*;


import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Tian
 */
@Remote
public interface CartSessionRemote {
    
    public int initCart(Long customerId);

    public void addProduct(Long cartId, int productId, int quantity);

    public void removeProduct(Long cartId, int productId);

    public List<ItemEntity> getAllCartItems(Long cartId);

    public List<ItemEntity> getAllItems();

    public void removeItem(Long itemId);

    public void removeAllItems();
    
    public List<CartEntity> removeAllCarts();

    public AccountEntity validPayment(Long cartId, String iban);

    public double getTotalPrice(Long cartId);

    public CartEntity removeCartById(Long cartId);

    public CartEntity getCartById(Long id);

    public boolean removeAllItemsByCartId(Long cartId);

    public boolean updateProduct(ItemEntity item);
    
    public List<CartEntity> getAllCart();

    public void removeProduct(Long cartId, Long dishId);
    
}
